package org.dcarew.clearcase;


import org.eclipse.core.resources.IResource;

// under scm; = in the db file
// checked out; = under scm and checked out == true
// dirty? = under scm, length is differnt or crc is different
// hijacked? = under scm, but writeable
// ??
// not under scm - so it qualifies but is not under scm - parent is under scm?
// added but not part of scm?

/**
 * 
 * 
 * @author Devon Carew
 */
class CCSyncInfo
{
    private IResource resource;

    private boolean   checkedOut;

    private boolean   underRevisionControl;

    private boolean   dirty;

    private boolean   added;

    private boolean   deleted;





    public CCSyncInfo()
    {

    }





    public CCSyncInfo(IResource resource)
    {
        this.resource = resource;
    }





    public IResource getResource()
    {
        return resource;
    }





    public void setResource(IResource resource)
    {
        this.resource = resource;
    }





    public boolean isCheckedOut()
    {
        return checkedOut;
    }





    public void setCheckedOut(boolean checkedOut)
    {
        this.checkedOut = checkedOut;
    }





    public boolean isUnderRevisionControl()
    {
        return underRevisionControl;
    }





    public void setUnderRevisionControl(boolean underRevisionControl)
    {
        this.underRevisionControl = underRevisionControl;
    }





    public boolean isDirty()
    {
        return dirty;
    }





    public void setDirty(boolean dirty)
    {
        this.dirty = dirty;
    }





    public boolean isAdded()
    {
        return added;
    }





    public void setAdded(boolean added)
    {
        this.added = added;
    }





    public boolean isDeleted()
    {
        return deleted;
    }





    public void setDeleted(boolean deleted)
    {
        this.deleted = deleted;
    }





    public boolean isUnknown()
    {
        return !isUnderRevisionControl();
    }

}
